package com.hotel.calendar;

import android.os.Bundle;
import android.support.v4.widget.TextViewCompat;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.TextView;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.Timer;
import java.util.TimerTask;

public class MainActivity extends AppCompatActivity {

    private CalendarLayout cal_layout;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        cal_layout = (CalendarLayout) findViewById(R.id.cal_layout);

        //http://zf.lbjet.com/mobile/index.php?act=houses&op=house_calendar&month=2017-03&half_a_year=1&house_id=1524

        //TODO 模拟请求数据
        new Timer().schedule(new TimerTask() {
            @Override
            public void run() {
                Type cvbType = new TypeToken<MonthDayBean>(){}.getType();
                MonthDayBean bean = new Gson().fromJson(testStr, cvbType);
                final ArrayList<MonthDayBean.MonthBean> months = bean.getDatas();

                runOnUiThread(new Runnable() {
                    @Override
                    public void run() {
                        /**1.设置数据，将解析好的数据绑定到控件*/
                        cal_layout.setData(months);
                    }
                });

            }
        },500);

    }

    /**2.获取选中日期*/
    public void getResult(View v){
        //得到选中的日期对象集合，注意，此集合中包含离店日期，按道理离店日期不算入住的
        ArrayList<MonthDayBean.Day> selected = cal_layout.getSelectedData();
        if(selected==null || selected.size()<=0){
            ((TextView)(findViewById(R.id.tv_result))).setText("未选中");
            return;
        }
        //移除最后一个离店日期，则是真正的预订酒店的日期
        selected.remove(selected.size()-1);
        String text = "选中入住日期为：\n";
        for(MonthDayBean.Day day : selected){
            text += (day.getDate()+" \n");
        }
        ((TextView)(findViewById(R.id.tv_result))).setText(text);

    }

    //测试数据
   /* private String testStr = "{\"code\":200," +
            "\"datas\":[" +
            "{\"month\":\"2017-03\",\"" +
            "days\":[{\"num\":\"1\",\"date\":\"2017-03-1\",\"week\":\"3\",\"price\":0,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"2\",\"date\":\"2017-03-2\",\"week\":\"4\",\"price\":0,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"3\",\"date\":\"2017-03-3\",\"week\":\"5\",\"price\":0,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"4\",\"date\":\"2017-03-4\",\"week\":\"6\",\"price\":0,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"5\",\"date\":\"2017-03-5\",\"week\":\"0\",\"price\":0,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"6\",\"date\":\"2017-03-6\",\"week\":\"1\",\"price\":0,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"7\",\"date\":\"2017-03-7\",\"week\":\"2\",\"price\":0,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"8\",\"date\":\"2017-03-8\",\"week\":\"3\",\"price\":0,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"9\",\"date\":\"2017-03-9\",\"week\":\"4\",\"price\":0,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"10\",\"date\":\"2017-03-10\",\"week\":\"5\",\"price\":0,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"11\",\"date\":\"2017-03-11\",\"week\":\"6\",\"price\":0,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"12\",\"date\":\"2017-03-12\",\"week\":\"0\",\"price\":0,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"13\",\"date\":\"2017-03-13\",\"week\":\"1\",\"price\":0,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"14\",\"date\":\"2017-03-14\",\"week\":\"2\",\"price\":0,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"15\",\"date\":\"2017-03-15\",\"week\":\"3\",\"price\":0,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"16\",\"date\":\"2017-03-16\",\"week\":\"4\",\"price\":0,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"17\",\"date\":\"2017-03-17\",\"week\":\"5\",\"price\":0,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"18\",\"date\":\"2017-03-18\",\"week\":\"6\",\"price\":0,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"19\",\"date\":\"2017-03-19\",\"week\":\"0\",\"price\":0,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"20\",\"date\":\"2017-03-20\",\"week\":\"1\",\"price\":0,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"21\",\"date\":\"2017-03-21\",\"week\":\"2\",\"price\":0,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"22\",\"date\":\"2017-03-22\",\"week\":\"3\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"23\",\"date\":\"2017-03-23\",\"week\":\"4\",\"price\":0,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"24\",\"date\":\"2017-03-24\",\"week\":\"5\",\"price\":0,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"25\",\"date\":\"2017-03-25\",\"week\":\"6\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"26\",\"date\":\"2017-03-26\",\"week\":\"0\",\"price\":0,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"27\",\"date\":\"2017-03-27\",\"week\":\"1\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"28\",\"date\":\"2017-03-28\",\"week\":\"2\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"29\",\"date\":\"2017-03-29\",\"week\":\"3\",\"price\":0,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"30\",\"date\":\"2017-03-30\",\"week\":\"4\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"31\",\"date\":\"2017-03-31\",\"week\":\"5\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"}]}," +
            "{\"month\":\"2017-4\"," +
            "\"days\":[{\"num\":\"1\",\"date\":\"2017-4-1\",\"week\":\"6\",\"price\":0,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"2\",\"date\":\"2017-4-2\",\"week\":\"0\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"3\",\"date\":\"2017-4-3\",\"week\":\"1\",\"price\":0,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"4\",\"date\":\"2017-4-4\",\"week\":\"2\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"5\",\"date\":\"2017-4-5\",\"week\":\"3\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"6\",\"date\":\"2017-4-6\",\"week\":\"4\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"7\",\"date\":\"2017-4-7\",\"week\":\"5\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"8\",\"date\":\"2017-4-8\",\"week\":\"6\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"9\",\"date\":\"2017-4-9\",\"week\":\"0\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"10\",\"date\":\"2017-4-10\",\"week\":\"1\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"11\",\"date\":\"2017-4-11\",\"week\":\"2\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"12\",\"date\":\"2017-4-12\",\"week\":\"3\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"13\",\"date\":\"2017-4-13\",\"week\":\"4\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"14\",\"date\":\"2017-4-14\",\"week\":\"5\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"15\",\"date\":\"2017-4-15\",\"week\":\"6\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"16\",\"date\":\"2017-4-16\",\"week\":\"0\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"17\",\"date\":\"2017-4-17\",\"week\":\"1\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"18\",\"date\":\"2017-4-18\",\"week\":\"2\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"19\",\"date\":\"2017-4-19\",\"week\":\"3\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"20\",\"date\":\"2017-4-20\",\"week\":\"4\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"21\",\"date\":\"2017-4-21\",\"week\":\"5\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"22\",\"date\":\"2017-4-22\",\"week\":\"6\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"23\",\"date\":\"2017-4-23\",\"week\":\"0\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"24\",\"date\":\"2017-4-24\",\"week\":\"1\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"25\",\"date\":\"2017-4-25\",\"week\":\"2\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"26\",\"date\":\"2017-4-26\",\"week\":\"3\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"27\",\"date\":\"2017-4-27\",\"week\":\"4\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"28\",\"date\":\"2017-4-28\",\"week\":\"5\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"29\",\"date\":\"2017-4-29\",\"week\":\"6\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"30\",\"date\":\"2017-4-30\",\"week\":\"0\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"}]}," +
            "{\"month\":\"2017-5\"," +
            "\"days\":[{\"num\":\"1\",\"date\":\"2017-5-1\",\"week\":\"1\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"2\",\"date\":\"2017-5-2\",\"week\":\"2\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"3\",\"date\":\"2017-5-3\",\"week\":\"3\",\"price\":0,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"4\",\"date\":\"2017-5-4\",\"week\":\"4\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"5\",\"date\":\"2017-5-5\",\"week\":\"5\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"6\",\"date\":\"2017-5-6\",\"week\":\"6\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"7\",\"date\":\"2017-5-7\",\"week\":\"0\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"8\",\"date\":\"2017-5-8\",\"week\":\"1\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"9\",\"date\":\"2017-5-9\",\"week\":\"2\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"10\",\"date\":\"2017-5-10\",\"week\":\"3\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"11\",\"date\":\"2017-5-11\",\"week\":\"4\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"12\",\"date\":\"2017-5-12\",\"week\":\"5\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"13\",\"date\":\"2017-5-13\",\"week\":\"6\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"14\",\"date\":\"2017-5-14\",\"week\":\"0\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"15\",\"date\":\"2017-5-15\",\"week\":\"1\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"16\",\"date\":\"2017-5-16\",\"week\":\"2\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"17\",\"date\":\"2017-5-17\",\"week\":\"3\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"18\",\"date\":\"2017-5-18\",\"week\":\"4\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"19\",\"date\":\"2017-5-19\",\"week\":\"5\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"20\",\"date\":\"2017-5-20\",\"week\":\"6\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"21\",\"date\":\"2017-5-21\",\"week\":\"0\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"22\",\"date\":\"2017-5-22\",\"week\":\"1\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"23\",\"date\":\"2017-5-23\",\"week\":\"2\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"24\",\"date\":\"2017-5-24\",\"week\":\"3\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"25\",\"date\":\"2017-5-25\",\"week\":\"4\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"26\",\"date\":\"2017-5-26\",\"week\":\"5\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"27\",\"date\":\"2017-5-27\",\"week\":\"6\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"28\",\"date\":\"2017-5-28\",\"week\":\"0\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"29\",\"date\":\"2017-5-29\",\"week\":\"1\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"30\",\"date\":\"2017-5-30\",\"week\":\"2\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"31\",\"date\":\"2017-5-31\",\"week\":\"3\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"}]}," +
            "{\"month\":\"2017-6\"," +
            "\"days\":[{\"num\":\"1\",\"date\":\"2017-6-1\",\"week\":\"4\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"2\",\"date\":\"2017-6-2\",\"week\":\"5\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"3\",\"date\":\"2017-6-3\",\"week\":\"6\",\"price\":0,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"4\",\"date\":\"2017-6-4\",\"week\":\"0\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"5\",\"date\":\"2017-6-5\",\"week\":\"1\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"6\",\"date\":\"2017-6-6\",\"week\":\"2\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"7\",\"date\":\"2017-6-7\",\"week\":\"3\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"8\",\"date\":\"2017-6-8\",\"week\":\"4\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"9\",\"date\":\"2017-6-9\",\"week\":\"5\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"10\",\"date\":\"2017-6-10\",\"week\":\"6\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"11\",\"date\":\"2017-6-11\",\"week\":\"0\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"12\",\"date\":\"2017-6-12\",\"week\":\"1\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"13\",\"date\":\"2017-6-13\",\"week\":\"2\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"14\",\"date\":\"2017-6-14\",\"week\":\"3\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"15\",\"date\":\"2017-6-15\",\"week\":\"4\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"16\",\"date\":\"2017-6-16\",\"week\":\"5\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"17\",\"date\":\"2017-6-17\",\"week\":\"6\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"18\",\"date\":\"2017-6-18\",\"week\":\"0\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"19\",\"date\":\"2017-6-19\",\"week\":\"1\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"20\",\"date\":\"2017-6-20\",\"week\":\"2\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"21\",\"date\":\"2017-6-21\",\"week\":\"3\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"22\",\"date\":\"2017-6-22\",\"week\":\"4\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"23\",\"date\":\"2017-6-23\",\"week\":\"5\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"24\",\"date\":\"2017-6-24\",\"week\":\"6\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"25\",\"date\":\"2017-6-25\",\"week\":\"0\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"26\",\"date\":\"2017-6-26\",\"week\":\"1\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"27\",\"date\":\"2017-6-27\",\"week\":\"2\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"28\",\"date\":\"2017-6-28\",\"week\":\"3\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"29\",\"date\":\"2017-6-29\",\"week\":\"4\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"30\",\"date\":\"2017-6-30\",\"week\":\"5\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"}]}," +
            "{\"month\":\"2017-7\"," +
            "\"days\":[{\"num\":\"1\",\"date\":\"2017-7-1\",\"week\":\"6\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"2\",\"date\":\"2017-7-2\",\"week\":\"0\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"3\",\"date\":\"2017-7-3\",\"week\":\"1\",\"price\":0,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"4\",\"date\":\"2017-7-4\",\"week\":\"2\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"5\",\"date\":\"2017-7-5\",\"week\":\"3\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"6\",\"date\":\"2017-7-6\",\"week\":\"4\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"7\",\"date\":\"2017-7-7\",\"week\":\"5\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"8\",\"date\":\"2017-7-8\",\"week\":\"6\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"9\",\"date\":\"2017-7-9\",\"week\":\"0\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"10\",\"date\":\"2017-7-10\",\"week\":\"1\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"11\",\"date\":\"2017-7-11\",\"week\":\"2\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"12\",\"date\":\"2017-7-12\",\"week\":\"3\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"13\",\"date\":\"2017-7-13\",\"week\":\"4\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"14\",\"date\":\"2017-7-14\",\"week\":\"5\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"15\",\"date\":\"2017-7-15\",\"week\":\"6\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"16\",\"date\":\"2017-7-16\",\"week\":\"0\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"17\",\"date\":\"2017-7-17\",\"week\":\"1\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"18\",\"date\":\"2017-7-18\",\"week\":\"2\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"19\",\"date\":\"2017-7-19\",\"week\":\"3\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"20\",\"date\":\"2017-7-20\",\"week\":\"4\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"21\",\"date\":\"2017-7-21\",\"week\":\"5\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"22\",\"date\":\"2017-7-22\",\"week\":\"6\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"23\",\"date\":\"2017-7-23\",\"week\":\"0\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"24\",\"date\":\"2017-7-24\",\"week\":\"1\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"25\",\"date\":\"2017-7-25\",\"week\":\"2\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"26\",\"date\":\"2017-7-26\",\"week\":\"3\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"27\",\"date\":\"2017-7-27\",\"week\":\"4\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"28\",\"date\":\"2017-7-28\",\"week\":\"5\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"29\",\"date\":\"2017-7-29\",\"week\":\"6\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"30\",\"date\":\"2017-7-30\",\"week\":\"0\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"31\",\"date\":\"2017-7-31\",\"week\":\"1\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"}]}," +
            "{\"month\":\"2017-8\"," +
            "\"days\":[{\"num\":\"1\",\"date\":\"2017-8-1\",\"week\":\"2\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"2\",\"date\":\"2017-8-2\",\"week\":\"3\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"3\",\"date\":\"2017-8-3\",\"week\":\"4\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"4\",\"date\":\"2017-8-4\",\"week\":\"5\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"5\",\"date\":\"2017-8-5\",\"week\":\"6\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"6\",\"date\":\"2017-8-6\",\"week\":\"0\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"7\",\"date\":\"2017-8-7\",\"week\":\"1\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"8\",\"date\":\"2017-8-8\",\"week\":\"2\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"9\",\"date\":\"2017-8-9\",\"week\":\"3\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"10\",\"date\":\"2017-8-10\",\"week\":\"4\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"11\",\"date\":\"2017-8-11\",\"week\":\"5\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"12\",\"date\":\"2017-8-12\",\"week\":\"6\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"13\",\"date\":\"2017-8-13\",\"week\":\"0\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"14\",\"date\":\"2017-8-14\",\"week\":\"1\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"15\",\"date\":\"2017-8-15\",\"week\":\"2\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"16\",\"date\":\"2017-8-16\",\"week\":\"3\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"17\",\"date\":\"2017-8-17\",\"week\":\"4\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"18\",\"date\":\"2017-8-18\",\"week\":\"5\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"19\",\"date\":\"2017-8-19\",\"week\":\"6\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"20\",\"date\":\"2017-8-20\",\"week\":\"0\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"21\",\"date\":\"2017-8-21\",\"week\":\"1\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"22\",\"date\":\"2017-8-22\",\"week\":\"2\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"23\",\"date\":\"2017-8-23\",\"week\":\"3\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"24\",\"date\":\"2017-8-24\",\"week\":\"4\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"25\",\"date\":\"2017-8-25\",\"week\":\"5\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"26\",\"date\":\"2017-8-26\",\"week\":\"6\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"27\",\"date\":\"2017-8-27\",\"week\":\"0\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"28\",\"date\":\"2017-8-28\",\"week\":\"1\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"29\",\"date\":\"2017-8-29\",\"week\":\"2\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"30\",\"date\":\"2017-8-30\",\"week\":\"3\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"31\",\"date\":\"2017-8-31\",\"week\":\"4\",\"price\":0,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"}]}]}";



*/
    private String testStr = "{\"code\":200,\"datas\":[{\"month\":\"2017-03\",\"days\":[{\"num\":\"1\",\"date\":\"2017-03-1\",\"week\":\"3\",\"price\":398,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"2\",\"date\":\"2017-03-2\",\"week\":\"4\",\"price\":398,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"3\",\"date\":\"2017-03-3\",\"week\":\"5\",\"price\":398,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"4\",\"date\":\"2017-03-4\",\"week\":\"6\",\"price\":398,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"5\",\"date\":\"2017-03-5\",\"week\":\"0\",\"price\":398,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"6\",\"date\":\"2017-03-6\",\"week\":\"1\",\"price\":398,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"7\",\"date\":\"2017-03-7\",\"week\":\"2\",\"price\":398,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"8\",\"date\":\"2017-03-8\",\"week\":\"3\",\"price\":398,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"9\",\"date\":\"2017-03-9\",\"week\":\"4\",\"price\":398,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"10\",\"date\":\"2017-03-10\",\"week\":\"5\",\"price\":398,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"11\",\"date\":\"2017-03-11\",\"week\":\"6\",\"price\":398,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"12\",\"date\":\"2017-03-12\",\"week\":\"0\",\"price\":398,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"13\",\"date\":\"2017-03-13\",\"week\":\"1\",\"price\":398,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"14\",\"date\":\"2017-03-14\",\"week\":\"2\",\"price\":398,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"15\",\"date\":\"2017-03-15\",\"week\":\"3\",\"price\":398,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"16\",\"date\":\"2017-03-16\",\"week\":\"4\",\"price\":398,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"17\",\"date\":\"2017-03-17\",\"week\":\"5\",\"price\":398,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"18\",\"date\":\"2017-03-18\",\"week\":\"6\",\"price\":398,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"19\",\"date\":\"2017-03-19\",\"week\":\"0\",\"price\":398,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"20\",\"date\":\"2017-03-20\",\"week\":\"1\",\"price\":398,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"21\",\"date\":\"2017-03-21\",\"week\":\"2\",\"price\":398,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"22\",\"date\":\"2017-03-22\",\"week\":\"3\",\"price\":398,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"23\",\"date\":\"2017-03-23\",\"week\":\"4\",\"price\":398,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"24\",\"date\":\"2017-03-24\",\"week\":\"5\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"25\",\"date\":\"2017-03-25\",\"week\":\"6\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"26\",\"date\":\"2017-03-26\",\"week\":\"0\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"27\",\"date\":\"2017-03-27\",\"week\":\"1\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"28\",\"date\":\"2017-03-28\",\"week\":\"2\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"29\",\"date\":\"2017-03-29\",\"week\":\"3\",\"price\":398,\"is_buy\":\"0\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"30\",\"date\":\"2017-03-30\",\"week\":\"4\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"31\",\"date\":\"2017-03-31\",\"week\":\"5\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"}]},{\"month\":\"2017-4\",\"days\":[{\"num\":\"1\",\"date\":\"2017-4-1\",\"week\":\"6\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"2\",\"date\":\"2017-4-2\",\"week\":\"0\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"3\",\"date\":\"2017-4-3\",\"week\":\"1\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"4\",\"date\":\"2017-4-4\",\"week\":\"2\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"5\",\"date\":\"2017-4-5\",\"week\":\"3\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"6\",\"date\":\"2017-4-6\",\"week\":\"4\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"7\",\"date\":\"2017-4-7\",\"week\":\"5\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"8\",\"date\":\"2017-4-8\",\"week\":\"6\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"9\",\"date\":\"2017-4-9\",\"week\":\"0\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"10\",\"date\":\"2017-4-10\",\"week\":\"1\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"11\",\"date\":\"2017-4-11\",\"week\":\"2\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"12\",\"date\":\"2017-4-12\",\"week\":\"3\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"13\",\"date\":\"2017-4-13\",\"week\":\"4\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"14\",\"date\":\"2017-4-14\",\"week\":\"5\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"15\",\"date\":\"2017-4-15\",\"week\":\"6\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"16\",\"date\":\"2017-4-16\",\"week\":\"0\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"17\",\"date\":\"2017-4-17\",\"week\":\"1\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"18\",\"date\":\"2017-4-18\",\"week\":\"2\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"19\",\"date\":\"2017-4-19\",\"week\":\"3\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"20\",\"date\":\"2017-4-20\",\"week\":\"4\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"21\",\"date\":\"2017-4-21\",\"week\":\"5\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"22\",\"date\":\"2017-4-22\",\"week\":\"6\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"23\",\"date\":\"2017-4-23\",\"week\":\"0\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"24\",\"date\":\"2017-4-24\",\"week\":\"1\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"25\",\"date\":\"2017-4-25\",\"week\":\"2\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"26\",\"date\":\"2017-4-26\",\"week\":\"3\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"27\",\"date\":\"2017-4-27\",\"week\":\"4\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"28\",\"date\":\"2017-4-28\",\"week\":\"5\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"29\",\"date\":\"2017-4-29\",\"week\":\"6\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"30\",\"date\":\"2017-4-30\",\"week\":\"0\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"}]},{\"month\":\"2017-5\",\"days\":[{\"num\":\"1\",\"date\":\"2017-5-1\",\"week\":\"1\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"2\",\"date\":\"2017-5-2\",\"week\":\"2\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"3\",\"date\":\"2017-5-3\",\"week\":\"3\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"4\",\"date\":\"2017-5-4\",\"week\":\"4\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"5\",\"date\":\"2017-5-5\",\"week\":\"5\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"6\",\"date\":\"2017-5-6\",\"week\":\"6\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"7\",\"date\":\"2017-5-7\",\"week\":\"0\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"8\",\"date\":\"2017-5-8\",\"week\":\"1\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"9\",\"date\":\"2017-5-9\",\"week\":\"2\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"10\",\"date\":\"2017-5-10\",\"week\":\"3\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"11\",\"date\":\"2017-5-11\",\"week\":\"4\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"12\",\"date\":\"2017-5-12\",\"week\":\"5\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"13\",\"date\":\"2017-5-13\",\"week\":\"6\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"14\",\"date\":\"2017-5-14\",\"week\":\"0\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"15\",\"date\":\"2017-5-15\",\"week\":\"1\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"16\",\"date\":\"2017-5-16\",\"week\":\"2\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"17\",\"date\":\"2017-5-17\",\"week\":\"3\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"18\",\"date\":\"2017-5-18\",\"week\":\"4\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"19\",\"date\":\"2017-5-19\",\"week\":\"5\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"20\",\"date\":\"2017-5-20\",\"week\":\"6\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"21\",\"date\":\"2017-5-21\",\"week\":\"0\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"22\",\"date\":\"2017-5-22\",\"week\":\"1\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"23\",\"date\":\"2017-5-23\",\"week\":\"2\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"24\",\"date\":\"2017-5-24\",\"week\":\"3\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"25\",\"date\":\"2017-5-25\",\"week\":\"4\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"26\",\"date\":\"2017-5-26\",\"week\":\"5\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"27\",\"date\":\"2017-5-27\",\"week\":\"6\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"28\",\"date\":\"2017-5-28\",\"week\":\"0\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"29\",\"date\":\"2017-5-29\",\"week\":\"1\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"30\",\"date\":\"2017-5-30\",\"week\":\"2\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"31\",\"date\":\"2017-5-31\",\"week\":\"3\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"}]},{\"month\":\"2017-6\",\"days\":[{\"num\":\"1\",\"date\":\"2017-6-1\",\"week\":\"4\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"2\",\"date\":\"2017-6-2\",\"week\":\"5\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"3\",\"date\":\"2017-6-3\",\"week\":\"6\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"4\",\"date\":\"2017-6-4\",\"week\":\"0\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"5\",\"date\":\"2017-6-5\",\"week\":\"1\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"6\",\"date\":\"2017-6-6\",\"week\":\"2\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"7\",\"date\":\"2017-6-7\",\"week\":\"3\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"8\",\"date\":\"2017-6-8\",\"week\":\"4\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"9\",\"date\":\"2017-6-9\",\"week\":\"5\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"10\",\"date\":\"2017-6-10\",\"week\":\"6\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"11\",\"date\":\"2017-6-11\",\"week\":\"0\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"12\",\"date\":\"2017-6-12\",\"week\":\"1\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"13\",\"date\":\"2017-6-13\",\"week\":\"2\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"14\",\"date\":\"2017-6-14\",\"week\":\"3\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"15\",\"date\":\"2017-6-15\",\"week\":\"4\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"16\",\"date\":\"2017-6-16\",\"week\":\"5\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"17\",\"date\":\"2017-6-17\",\"week\":\"6\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"18\",\"date\":\"2017-6-18\",\"week\":\"0\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"19\",\"date\":\"2017-6-19\",\"week\":\"1\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"20\",\"date\":\"2017-6-20\",\"week\":\"2\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"21\",\"date\":\"2017-6-21\",\"week\":\"3\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"22\",\"date\":\"2017-6-22\",\"week\":\"4\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"23\",\"date\":\"2017-6-23\",\"week\":\"5\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"24\",\"date\":\"2017-6-24\",\"week\":\"6\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"25\",\"date\":\"2017-6-25\",\"week\":\"0\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"26\",\"date\":\"2017-6-26\",\"week\":\"1\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"27\",\"date\":\"2017-6-27\",\"week\":\"2\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"28\",\"date\":\"2017-6-28\",\"week\":\"3\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"29\",\"date\":\"2017-6-29\",\"week\":\"4\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"30\",\"date\":\"2017-6-30\",\"week\":\"5\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"}]},{\"month\":\"2017-7\",\"days\":[{\"num\":\"1\",\"date\":\"2017-7-1\",\"week\":\"6\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"2\",\"date\":\"2017-7-2\",\"week\":\"0\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"3\",\"date\":\"2017-7-3\",\"week\":\"1\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"4\",\"date\":\"2017-7-4\",\"week\":\"2\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"5\",\"date\":\"2017-7-5\",\"week\":\"3\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"6\",\"date\":\"2017-7-6\",\"week\":\"4\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"7\",\"date\":\"2017-7-7\",\"week\":\"5\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"8\",\"date\":\"2017-7-8\",\"week\":\"6\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"9\",\"date\":\"2017-7-9\",\"week\":\"0\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"10\",\"date\":\"2017-7-10\",\"week\":\"1\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"11\",\"date\":\"2017-7-11\",\"week\":\"2\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"12\",\"date\":\"2017-7-12\",\"week\":\"3\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"13\",\"date\":\"2017-7-13\",\"week\":\"4\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"14\",\"date\":\"2017-7-14\",\"week\":\"5\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"15\",\"date\":\"2017-7-15\",\"week\":\"6\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"16\",\"date\":\"2017-7-16\",\"week\":\"0\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"17\",\"date\":\"2017-7-17\",\"week\":\"1\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"18\",\"date\":\"2017-7-18\",\"week\":\"2\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"19\",\"date\":\"2017-7-19\",\"week\":\"3\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"20\",\"date\":\"2017-7-20\",\"week\":\"4\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"21\",\"date\":\"2017-7-21\",\"week\":\"5\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"22\",\"date\":\"2017-7-22\",\"week\":\"6\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"23\",\"date\":\"2017-7-23\",\"week\":\"0\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"24\",\"date\":\"2017-7-24\",\"week\":\"1\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"25\",\"date\":\"2017-7-25\",\"week\":\"2\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"26\",\"date\":\"2017-7-26\",\"week\":\"3\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"27\",\"date\":\"2017-7-27\",\"week\":\"4\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"28\",\"date\":\"2017-7-28\",\"week\":\"5\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"29\",\"date\":\"2017-7-29\",\"week\":\"6\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"30\",\"date\":\"2017-7-30\",\"week\":\"0\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"31\",\"date\":\"2017-7-31\",\"week\":\"1\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"}]},{\"month\":\"2017-8\",\"days\":[{\"num\":\"1\",\"date\":\"2017-8-1\",\"week\":\"2\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"2\",\"date\":\"2017-8-2\",\"week\":\"3\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"3\",\"date\":\"2017-8-3\",\"week\":\"4\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"4\",\"date\":\"2017-8-4\",\"week\":\"5\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"5\",\"date\":\"2017-8-5\",\"week\":\"6\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"6\",\"date\":\"2017-8-6\",\"week\":\"0\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"7\",\"date\":\"2017-8-7\",\"week\":\"1\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"8\",\"date\":\"2017-8-8\",\"week\":\"2\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"9\",\"date\":\"2017-8-9\",\"week\":\"3\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"10\",\"date\":\"2017-8-10\",\"week\":\"4\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"11\",\"date\":\"2017-8-11\",\"week\":\"5\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"12\",\"date\":\"2017-8-12\",\"week\":\"6\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"13\",\"date\":\"2017-8-13\",\"week\":\"0\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"14\",\"date\":\"2017-8-14\",\"week\":\"1\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"15\",\"date\":\"2017-8-15\",\"week\":\"2\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"16\",\"date\":\"2017-8-16\",\"week\":\"3\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"17\",\"date\":\"2017-8-17\",\"week\":\"4\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"18\",\"date\":\"2017-8-18\",\"week\":\"5\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"19\",\"date\":\"2017-8-19\",\"week\":\"6\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"20\",\"date\":\"2017-8-20\",\"week\":\"0\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"21\",\"date\":\"2017-8-21\",\"week\":\"1\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"22\",\"date\":\"2017-8-22\",\"week\":\"2\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"23\",\"date\":\"2017-8-23\",\"week\":\"3\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"24\",\"date\":\"2017-8-24\",\"week\":\"4\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"25\",\"date\":\"2017-8-25\",\"week\":\"5\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"26\",\"date\":\"2017-8-26\",\"week\":\"6\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"27\",\"date\":\"2017-8-27\",\"week\":\"0\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"28\",\"date\":\"2017-8-28\",\"week\":\"1\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"29\",\"date\":\"2017-8-29\",\"week\":\"2\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"30\",\"date\":\"2017-8-30\",\"week\":\"3\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"},{\"num\":\"31\",\"date\":\"2017-8-31\",\"week\":\"4\",\"price\":398,\"is_buy\":\"1\",\"is_select\":\"0\",\"set\":\"10\"}]}]}";

















}
